package cn.laixueit;

import cn.laixueit.service.StudentServiceImpl;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Demo {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring.xml");
        StudentServiceImpl bean = context.getBean("studentServiceImpl", StudentServiceImpl.class);
//        PageHelper.startPage(2,1);
//        List<Student> studentList = bean.findAll();
//        PageInfo<Student> pageInfo = new PageInfo<>(studentList);
//        pageInfo.getList().forEach(System.out::println);
        bean.all().forEach(System.out::println);
        bean.findAll();
    }
}
